import { request } from "@/utils/request"

const ip = {
    addOrUpdate: "/back/renfang/doc/template/am", // 批量新增或更新doc文档模板数据
}

// 跨区支援行动计划
export const addOrUpdateJbfa = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "基本方案"
        }
    });
}

// 跨区支援行动计划
export const addOrUpdateKqzy = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "跨区支援行动计划"
        }
    });
}
// 平战转换行动计划
export const addOrUpdatePzzh = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "平战转换行动计划"
        }
    });
}
// 人员防护行动计划
export const addOrUpdateRyfh = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "人员防护行动计划"
        }
    });
}
// 重要目标防护行动计划
export const addOrUpdateZymb = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "重要目标防护行动计划"
        }
    });
}
// 情报信息保障计划
export const addOrUpdateQbxx = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "情报信息保障计划"
        }
    });
}
// 综合保障计划
export const addOrUpdateZhbz = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "综合保障计划"
        }
    });
}
// 政治工作计划
export const addOrUpdateZzgz = (data) => {
    return request({
        url: ip.addOrUpdate,
        method: "post",
        data: {
            ...data,
            name: "政治工作计划"
        }
    });
}